package com.aaa.common.constants;

/**
 * @Author: YuXin
 * @Date : Created in 2020/11/9 16:05
 * @ClassName : Result
 * @Description : 枚举  返回类型
 * @Package_Name : com.aaa.common.util
 */
public enum ReturnCode {
    /**
     *  SUCCESS   2000  操作成功
     */
    SUCCESS(2000,"操作成功"),
    /**
     *  FAIL   5000  操作失败
     */
    FAIL(5000,"操作失败");

    private int code;
    private String msg;

    ReturnCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
